# 示例代码：TensorFlow和PyTorch的简单比较
# TensorFlow
import tensorflow as tf
tensor_tf = tf.constant([[1, 2], [3, 4]])
print("TensorFlow tensor:", tensor_tf.numpy())

# PyTorch
import torch
tensor_torch = torch.tensor([[1, 2], [3, 4]])
print("PyTorch tensor:", tensor_torch.numpy())